/* pages/home/home.wxss */
.home-container {
  padding: 20rpx;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.function-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30rpx;
  padding: 20rpx 0;
}

.function-item {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.function-icon {
  width: 100rpx;
  height: 100rpx;
  margin-bottom: 10rpx;
}

.function-name {
  font-size: 24rpx;
  color: #333;
}

.section {
  margin-top: 30rpx;
  background-color: #fff;
  border-radius: 16rpx;
  padding: 20rpx;
}

.building-list {
  display: flex;
  gap: 20rpx;
  overflow-x: auto;
  padding: 10rpx 0;
  scrollbar-width: none; /* 隐藏滚动条 */
}

.building-list::-webkit-scrollbar {
  display: none; /* 隐藏滚动条 */
}

.building-card {
  min-width: 300rpx;
  margin-bottom: 10rpx;
}

.news-list {
  padding: 10rpx 0;
}

.news-item {
  display: flex;
  padding: 15rpx 0;
  border-bottom: 1px solid #eee;
}

.news-item:last-child {
  border-bottom: none;
}

.news-image {
  width: 160rpx;
  height: 120rpx;
  border-radius: 8rpx;
}

.news-content {
  margin-left: 20rpx;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-title {
  font-size: 28rpx;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-time {
  font-size: 22rpx;
  color: #999;
}